package com.air.ota.vo;

public class LastTransDataVO {
	
	protected byte[] result;
	protected byte[] depositSequence;
	protected byte[] remain;
	protected byte[] onlineTransSequence;
	protected byte[] tac;
	
	public LastTransDataVO(byte[] data){
		result = new byte[2];
		depositSequence = new byte[2];
		remain = new byte[4];
		onlineTransSequence = new byte[2];
		tac = new byte[4];
		parse(data);
	}
	
	private void parse(byte[] data){
		System.arraycopy(data, 0, result, 0, 2);
		System.arraycopy(data, 2, depositSequence, 0, 2);
		System.arraycopy(data, 4, remain, 0, 4);
		System.arraycopy(data, 8, onlineTransSequence, 0, 2);
		System.arraycopy(data, 10, tac, 0, 4);
	}

	public byte[] getResult() {
		return result;
	}

	public byte[] getDepositSequence() {
		return depositSequence;
	}

	public byte[] getRemain() {
		return remain;
	}

	public byte[] getOnlineTransSequence() {
		return onlineTransSequence;
	}

	public byte[] getTac() {
		return tac;
	}
	
	
	
}
